import request from '@/utils/request'

// 查询人员健康建议列表
export function listPhysicaladvice(query) {
  return request({
    url: '/physical/physicaladvice/list',
    method: 'get',
    params: query
  })
}

// 查询人员健康建议详细
export function getPhysicaladvice(id) {
  return request({
    url: '/physical/physicaladvice/' + id,
    method: 'get'
  })
}

// 新增人员健康建议
export function addPhysicaladvice(data) {
  return request({
    url: '/physical/physicaladvice',
    method: 'post',
    data: data
  })
}

// 修改人员健康建议
export function updatePhysicaladvice(data) {
  return request({
    url: '/physical/physicaladvice',
    method: 'put',
    data: data
  })
}

// 删除人员健康建议
export function delPhysicaladvice(id) {
  return request({
    url: '/physical/physicaladvice/' + id,
    method: 'delete'
  })
}
